﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Utility;
using System.Runtime.Serialization;

namespace Classes
{
    [DataContract(IsReference=true)]
    public class Department
    {
        #region Variables
        [DataMember]
        private int id = UniqueID.Department;
        #endregion

        #region Properties
        public int ID
        {
            get
            {
                return id;
            }
        }

        [DataMember]
        public Worker Manager
        {
            get;
            set;
        }

        [DataMember]
        public int Budget
        {
            get;
            set;
        }

        [DataMember]
        public List<Project> Projects
        {
            get;
            set;
        }

        [DataMember]
        public List<Worker> Workers
        {
            get;
            set;
        }

        [DataMember]
        public List<Office> Offices
        {
            get;
            set;
        }

        [DataMember]
        public string Name
        {
            get;
            set;
        }
        #endregion
    }
}
